<?php
/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */

global $post;
get_header(); ?>
    <div class="row-fluid">
        
        
    	<div id="primary" class="site-content span12">   
            <?php woo_main_before();?>
    		<div id="content" role="main">
                
    			<section id="main"> 			
        
                <?php
                	if ( have_posts() ) { $count = 0;
                		while ( have_posts() ) { the_post(); $count++;
                ?>                                                           
                    <article <?php post_class(); ?>>
                                			
                        <section class="entry">
                        	<?php the_content(); ?>
            
            				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
                       	</section><!-- /.entry -->
            
            			<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
                        
                    </article><!-- /.post -->
                    
                    <?php
                    	// Determine wether or not to display comments here, based on "Theme Options".
                    	if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'page', 'both' ) ) ) {
                    		comments_template();
                    	}
            
            			} // End WHILE Loop
            		} else {
            	?>
            		<article <?php post_class(); ?>>
                    	<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
                    </article><!-- /.post -->
                <?php } // End IF Statement ?>  
                
            	</section><!-- /#main -->
                
                
    		</div><!-- #content -->            
            <?php woo_main_after();?>
    	</div><!-- #primary -->
        
    </div>
<?php get_footer(); ?>